Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename defs to entity_models. Simplify Jinja rendering #232

Merged
merged 6 commits into from
Jun 18, 2024

Conversation

gilesknap
Copy link
Member

No description provided.

@gilesknap gilesknap merged commit e76e046 into list-arg2dict-param Jun 18, 2024
9 of 12 checks passed
gilesknap added a commit that referenced this pull request Jun 18, 2024
* rename definition to entity_model

* test_list working

* all tests passing

* lint

* remove redundant changes

* revert id_to_entity changes
@gilesknap gilesknap deleted the experiment branch June 18, 2024 06:28
@@ -17,7 +17,7 @@
]


class DefinesTypes(Enum):
class DefineTypes(Enum):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this still has one too many ss

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

@@ -54,60 +55,69 @@ class Entity(BaseSettings):
entity_enabled: bool = Field(
description="enable or disable this entity instance", default=True
)
__definition__: EntityDefinition
__definition__: EntityModel
Copy link
Member

@GDYendell GDYendell Jun 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field should probably have a new name too

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not getting you - that is the new name we settled on

gilesknap added a commit that referenced this pull request Jun 19, 2024
* make args and defines lists into dicts

* rename Args to Params

* first version of support yaml converter

* completed converter

* fixes to get tests working with list2dict

* remove redundant dlsPLC expansion test

* convert all support yaml to new schema

* restore incorrect test output samples

* fix id lookup issue

* fix remaining tests

* tidy formatting in converter

* add __utils__ conversion for support and ioc yaml

* add old samples to gitignore for testing

* improve error reporting in converter

* Rename defs to entity_models. Simplify Jinja rendering (#232)

* rename definition to entity_model

* test_list working

* all tests passing

* lint

* remove redundant changes

* revert id_to_entity changes

* name changes "parameters" "entity_models"

* update support schema

* make args and defines lists into dicts

* rename Args to Params

* first version of support yaml converter

* completed converter

* fixes to get tests working with list2dict

* remove redundant dlsPLC expansion test

* convert all support yaml to new schema

* restore incorrect test output samples

* fix id lookup issue

* fix remaining tests

* tidy formatting in converter

* add __utils__ conversion for support and ioc yaml

* add old samples to gitignore for testing

* improve error reporting in converter

* Rename defs to entity_models. Simplify Jinja rendering (#232)

* rename definition to entity_model

* test_list working

* all tests passing

* lint

* remove redundant changes

* revert id_to_entity changes

* name changes "parameters" "entity_models"

* update support schema

* tidy comments

* replace "definition" with "model" throughout

* fix system test

* arg --> param

* DefineTypes -> DefineType

* Update src/ibek/entity_model.py

Co-authored-by: Gary Yendell <gary.yendell@diamond.ac.uk>

* Update src/ibek/ioc.py

Co-authored-by: Gary Yendell <gary.yendell@diamond.ac.uk>

* arg --> param again

* error on no id in Entity.__str__

* Update src/ibek/entity_model.py

Co-authored-by: Gary Yendell <gary.yendell@diamond.ac.uk>

* clarify ID and _get_id_arg

* update ibek2to3 header comment

---------

Co-authored-by: Gary Yendell <gary.yendell@diamond.ac.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants